﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Adler.Master" AutoEventWireup="true" CodeBehind="NewsAdler.aspx.cs" Inherits="WebUI.NewsAdler" %>
<%@ Register tagPrefix="Paging" tagName="UcPaging" src="UserControls/UCPager.ascx" %>
<%@ Register src="UserControls/UCNewsCategory.ascx" tagname="UCNewsCategory" tagprefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" type="text/css" href="Content/css/reset.css"/>
    <link rel="stylesheet" type="text/css" href="Content/CommonOrtherBlankPage.css"/>
    <link type="text/css" rel="stylesheet" href="Content/UCNewsCategory/newcategory.css"/>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
    
    <div class="container">
	<div id="header">
		<p>Home>CustommerService</p>
		<h1>Customer Services</h1>
	</div>
	<div class="seprate"></div>
	<div id="main-page">
		<div id="left-column">
		    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
		        <ContentTemplate>
		    <uc2:UCNewsCategory ID="UCNewsCategory1" runat="server" />
            </ContentTemplate>
            </asp:UpdatePanel>
		</div>
		<div id="main-column">
		    <div class="LabelCategory">
                <h3><asp:Label runat="server" ID="lblTitle" Text=""></asp:Label></h3>
            </div>
		    <asp:Panel runat="server" ID="panel1">
		        
                <div class="NewsPaging">
            Sort By  <asp:DropDownList runat="server" Width="132px" ID="Shortby">
                       <asp:ListItem>Date</asp:ListItem>
                       <asp:ListItem>View</asp:ListItem>
                   </asp:DropDownList>
                   <Paging:UcPaging ID="pg1" Visible="False" runat="server" />
        </div>
        <asp:Repeater runat="server"  ID="rptNews">
            <ItemTemplate>
                <div class="wrap-news">
                    <div class="imgThumb">
                        <asp:Image runat="server" ImageUrl='<%# String.Format("DisplayImage.ashx?ImgId={0}",Eval("thumbsId")) %>' ID="thumbs" Width="120px" Height="110px"/>
                    </div>
                    <div class="content">
                        <div class="newsTitle">
                            <strong><asp:HyperLink NavigateUrl='<%# String.Format("NewsAdler.aspx?idCategory={0}&idItem={1}", Eval("idCategory"),Eval("idItem"))%>' runat="server" ID="lblName" Text='<%# Eval("nameTitle") %>' /></strong>
                        </div>
                        <asp:Label runat="server" ID="lblShort" Text='<%# Eval("shortDesc") %>'></asp:Label>
                    </div>
                    <div class="inform">
                        <span><%# Eval("dateView")%></span><br />
                        <span><%# String.Format("{0} Lượt xem",Eval("review"))%></span>
                    </div>
                </div>
            </ItemTemplate>
        </asp:Repeater>

		    </asp:Panel>
		    
        <div class="displayContent">
            <asp:Label runat="server" ID="txtFullDesc"></asp:Label>
        </div>
        
    <asp:HiddenField runat="server" ID="hdfIdCategory" />
    <asp:HiddenField runat="server" ID="hdfIdNews" />
    <asp:HiddenField runat="server" ID="hdfLangId"/>
		</div>
	</div>
    </div>
    

</asp:Content>
